package com.ad.pet.app.collect.adapter;

import android.support.annotation.Nullable;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.ad.pet.R;
import com.ad.pet.models.remote.collect.CollectTag;

import java.util.List;

/**
 * Created by SEELE on 2018/7/5.
 */

public class CollectTopTagAdapter extends BaseQuickAdapter<CollectTag,BaseViewHolder> {
    public CollectTopTagAdapter( @Nullable List<CollectTag> data) {
        super(R.layout.item_collection_top_type, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, CollectTag item) {
        TextView textView = helper.getView(R.id.tv_label);
        textView.setText(item.getName()+"("+item.getNum()+")");
    }
}
